package com.hhf.rpc.core.retry.impl;

import com.hhf.rpc.core.model.RpcResponse;
import com.hhf.rpc.core.retry.RetryStrategy;

import java.util.concurrent.Callable;

/**
 * @Author hhf
 * @Date 2024/10/20
 * @Description 不重试策略
 */
public class NoRetryStrategy implements RetryStrategy {
    @Override
    public RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception {
        return callable.call();
    }
}
